package com.jyh.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyh.blog.dto.CategoryBackDTO;
import com.jyh.blog.dto.CategoryDTO;
import com.jyh.blog.entity.Category;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Category)表数据库访问层
 *
 * @author jyh
 * @since 2023-01-18 13:49:24
 */
@Repository
public interface CategoryDao extends BaseMapper<Category> {

    List<CategoryBackDTO> categoryListBack(@Param("current") Long current, @Param("size") Long size, @Param("keywords") String keywords);

    List<CategoryDTO> categoryList();
}

